Skip to content

Conversation

another-rex
Copy link
Collaborator

@another-rex another-rex commented Oct 1, 2025

Basic MVP of an osv-scanner MCP server fulfilling workflow 1. Directly vulnerability scanning of a project with prioritisation.

@codecov-commenter
Copy link

codecov-commenter commented Oct 1, 2025

Codecov Report

❌ Patch coverage is 2.73224% with 178 lines in your changes missing coverage. Please review.
✅ Project coverage is 67.04%. Comparing base (de3fd42) to head (e4e83b6).

Files with missing lines Patch % Lines
cmd/osv-scanner/mcp/main.go 0.00% 120 Missing ⚠️
internal/output/mcp.go 0.00% 41 Missing ⚠️
cmd/osv-scanner/mcp/stats.go 0.00% 13 Missing ⚠️
pkg/osvscanner/scan.go 57.14% 1 Missing and 2 partials ⚠️
cmd/osv-scanner/main.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              mcp    #2256      +/-   ##
==========================================
- Coverage   67.46%   67.04%   -0.42%     
==========================================
  Files         169      172       +3     
  Lines       16386    16491     +105     
==========================================
+ Hits        11055    11057       +2     
- Misses       4655     4756     +101     
- Partials      676      678       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@another-rex
Copy link
Collaborator Author

/gemini

go.mod Outdated
github.com/google/osv-scalibr v0.3.4
github.com/ianlancetaylor/demangle v0.0.0-20250628045327-2d64ad6b7ec5
github.com/jedib0t/go-pretty/v6 v6.6.8
github.com/mark3labs/mcp-go v0.41.1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Scorecard is looking into a MCP server as well, is there a reason you went with this library? We had been looking at the official SDK ( partly maintained by the Go team)?
https://github.com/modelcontextprotocol/go-sdk

I haven't personally looked at alternatives, so I'm just trying to avoid redoing any analysis that may have already been done.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't looked too much into the different mcp libraries, I mostly picked go-mcp as it was the most popular by stars, and was not aware that there is an official one.

But what I found during implementation is that it really doesn't matter too much the mcp library being used, the actual part interfacing with the mcp library is quite minimal, so it should be very easy to switch between different libraries. I might switch to use go-sdk as it looks like an evolution of the go-mcp library that's more officially supported.

@another-rex another-rex changed the base branch from mcp to main October 20, 2025 05:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants